angular.module('faApp')
  .service('simuBuyHisService', [ 'ajaxService',function (ajaxService) {

    this.list = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("SIMU_BUYHIS_LIST"),cfg || {});
    };  
    
    this.add = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("SIMU_BUYHIS_ADD"),cfg || {});
    };  

    this.edit = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("SIMU_BUYHIS_EDIT"),cfg || {});
    };  

    this.query = function (id) {
      return ajaxService.jsonp(ajaxService.getApiUri("SIMU_BUYHIS_QUERY"),{id:id});
    };  

    this.remove = function (id) {
      return ajaxService.jsonp(ajaxService.getApiUri("SIMU_BUYHIS_REMOVE"),{id:id});
    };  

}]);
